from api.ihrm_emp_manage_api import IHRMEmpManageApi
from common.assert_util import AssertUtil
from common.emp_util import EmpUtil
from common.token_util import TokenUtil


class TestQueryEmp:

    def setup_class(self):
        self.token =TokenUtil.get_token()


    def test_query(self):
        emp_id = EmpUtil.get_emp_id()
        resp = IHRMEmpManageApi.query_emp_api(emp_id,self.token)
        print(resp.json())
        AssertUtil.ihrm_assert(resp, 200, True, 10000, "操作成功！")

        pass
